<?php

use Illuminate\Foundation\Inspiring;

/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

Artisan::command('sync:task', function () {
    \App\Handlers\RedisHandler::syncTasks();
})->describe('同步微信任务数据');

Artisan::command('clear:hour_task', function () {
    \App\Handlers\RedisHandler::clearHourTask();
})->describe('清空微信分时任务数据');

Artisan::command('sync:ad_task', function () {
    \App\Handlers\RedisHandler::syncAdTasks();
})->describe('同步广告任务数据');

Artisan::command('sync:config', function () {
    \App\Handlers\RedisHandler::syncConfig();
})->describe('同步配置数据');

